package com.ruibang.glass.portal.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.teaming.cloud.framework2.common.pojo.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;


/**
 * @author 宋锦康
 */
@Data
@ApiModel
@TableName(value = "g_area")
public class Area extends BaseEntity implements Serializable {

    @ApiModelProperty(value = "区域Id")
    @TableId(value = "area_id", type = IdType.ASSIGN_ID)
    private String areaId;

    @NotBlank(message = "工序名称不能为空!")
    @ApiModelProperty(value = "区域名称")
    private String areaName;

    @ApiModelProperty(value = "产线Id")
    private String productLineId;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty("排序")
    private Integer sort;

    @ApiModelProperty(value = "名称")
    @TableField(exist = false)
    private String productLineName;
}
